﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ch05
{
    class Class9
    {
        static void Main(string[] args)
        {
            //定义二维数组的同时赋初始值
            int[,] nums = {
                {11,12,13,14},
                {21,22,23,24},
                {31,32,33,34}
            };

            //Console.WriteLine(nums[1,2]);
            for (int i = 0; i < nums.GetLength(0); i++)
            {
                for (int j = 0; j < nums.GetLength(1); j++)
                {
                    Console.Write(nums[i, j] + "\t");
                }
                Console.WriteLine();
            }
        }
    }
}
